package com.pinghua.mocha.basics.enumerate;



/**
 * @author songkui
 * @since 2024/5/8 18:08
 */
public enum MochaSocpEnum {
    PC("_pc", "PC端"),
    REG_APP("_reg", "监管APP"),
    ;

    private final String table;
    private final String label;

    MochaSocpEnum(String table, String label) {
        this.table = table;
        this.label = label;
    }

    public String table() {
        return this.table;
    }

    public String label() {
        return this.label;
    }


    public static MochaSocpEnum ofCode(String name) {
        for (MochaSocpEnum type : values()) {
            if (type.name().equals(name)) {
                return type;
            }
        }
       return null;
    }

}
